/** 固定的路由 */
export const constantRoutes: AuthRoute.Route[] = [
    // {
    //     name: 'root',
    //     path: '/',
    //     redirect: '/quartz/jobInfo',
    //     meta: {
    //         title: 'Root'
    //     }
    // },

    {
        name: 'login',
        path: '/login',
        component: 'self',
        meta: {
            title: '登录',
            singleLayout: 'blank'
        }
    },
    {
        name: 'home',
        path: '/home',
        component: 'self',
        meta: {
            title: '单级路由',
            requiresAuth: true,
            singleLayout: 'basic',
            icon: 'fluent:book-information-24-regular',
            order: 7
        }
    },

    {
        name: 'homeKeys',
        path: '/homeKeys',
        component: 'basic',

        children: [
            {
                name: 'homeKeys_home2',
                path: '/homeKeys/home2',
                component: 'self',
                meta: {
                    title: '二级路由-1',
                    requiresAuth: true
                }
            },
            {
                name: 'homeKeys_homekets',
                path: '/homeKeys/homekets',
                component: 'self',
                meta: {
                    title: '二级路由-2',
                    requiresAuth: true
                }
            }
        ],
        meta: {
            title: '二级路由',
            icon: 'carbon:dashboard'
        }
    },

    {
        name: 'homekeys3',
        path: '/homekeys3',
        component: 'basic',

        children: [
            {
                name: 'homekeys3_homekeys3-1',
                path: '/homekeys3/homekeys3-1',
                component: 'multi',
                children: [
                    {
                        name: 'homekeys3_homekeys3-1_homekeys3-1-1',
                        path: '/homekeys3/homekeys3-1/homekeys3-1-1',
                        component: 'self',
                        meta: {
                            title: '多层路由3-1-1'
                        }
                    },
                    {
                        name: 'homekeys3_homekeys3-1_homekeys3-1-2',
                        path: '/homekeys3/homekeys3-1/homekeys3-1-2',
                        component: 'self',
                        meta: {
                            title: '多层路由3-1-2'
                        }
                    }
                ],
                meta: {
                    title: '多层路由3-1'
                }
            }
        ],
        meta: {
            title: '多级路由',
            icon: 'carbon:dashboard'
        }
    },

    {
        name: 'not-found',
        path: '/not-found',
        component: 'self',
        meta: {
            title: '未找到',
            singleLayout: 'blank',
            hide: true
        }
    },
    // 匹配无效路径的路由
    {
        name: 'not-found-page',
        path: '/:pathMatch(.*)*',
        component: 'blank',
        meta: {
            hide: true,
            title: '未找到',
            singleLayout: 'blank'
        }
    }
];
